package org.heng.service;

import org.heng.dto.req.BuyTicketReqDTO;
import org.heng.dto.req.CreateTicketReqDTO;
import org.heng.dto.req.TicketReqDTO;
import org.heng.dto.req.UpdateTicketDTO;
import org.heng.dto.resp.TicketRespDTO;

public interface TicketService {


    TicketRespDTO createTicket(CreateTicketReqDTO requestParams);

    TicketRespDTO queryTicketsById(Long id);

    void purchaseTicket(BuyTicketReqDTO requestParams);

    void updateStock(TicketReqDTO requestParams);

    TicketRespDTO queryTicketsByName(String name);

    void updatePrice(UpdateTicketDTO requestParams);
}
